<?php
date_default_timezone_set("PRC");

require 'vendor/autoload.php';
require 'database.php';

use Illuminate\Database\Capsule\Manager as DB;

// select * from chatlog where message = '111'
$article = DB::table('chatlog')
    ->where('message', '111')
    ->first();
echo $article->sent_by;


